#pragma once
#include "Objects\object.h"
#include "Components/Graphics/SpritesheetComponent.h"


class Selector :
	public star::Object
{
public:
	Selector(int32 startPosX, int32 startPosY);
	~Selector();

	void GetCurrentPos(int32& outX, int32& outY);
	void SetMaxHorizontalTiles(int32 nr);
	void SetMaxVerticalTiles(int32 nr);
	void Reset();

protected:
	void Initialize();
	void Update(const star::Context& context);

private:
	star::SpritesheetComponent* m_SpriteSheetComp;

	int32 m_MaxHorizontalTiles;
	int32 m_MaxVerticalTiles;
	   
	int32 m_CurrentPosWidth;
	int32 m_CurrentPosHeight;

	double m_TimePressed;
	const double m_TimeToTriggerMove;
	double m_TimeMove;
	const double m_TimeBetweenMoves;
};

